@echo off
setlocal
call :func
call :func2
::goto :func2

exit /b %errorlevel%

:func
set /a a=2
echo The a is 2
exit /b 0

:func2
set b=Hello Word
echo %b%
exit /b 0